/**
 * 
 */
package kulstats;

import java.util.Date;
import java.util.List;

import com.google.appengine.api.datastore.Key;

/**
 * @author steven
 *
 */
public class Lesson extends Activity implements getCourseable {
	private Course course;
	private LessonType lessontype;
	

	/**
	 * 
	 */
	public Lesson(Key key, Date startDate, Date stopDate, Integer points,
			List<Question> questionnaire, Course course, LessonType lessontype) {
		super(key, startDate, stopDate, points, questionnaire);
		// TODO Auto-generated constructor stub
		this.course = course;
		this.lessontype = lessontype;
	}
	public Lesson(Date startDate, Date stopDate, Integer points,
			List<Question> questionnaire, Course course, LessonType lessontype) {
		super(startDate, stopDate, points, questionnaire);
		// TODO Auto-generated constructor stub
		this.course = course;
		this.lessontype = lessontype;
	}

	/**
	 * @return the course
	 */
	@Override
	public Course getCourse() {
		return course;
	}

	/**
	 * @param course the course to set
	 */
	public void setCourse(Course course) {
		this.course = course;
	}

	@Override
	public ActivityType getAType()
	{
		return ActivityType.LESSON;
	}
	
	public LessonType getLessontype() {
		return lessontype;
	}

	public void setLessontype(LessonType lessontype) {
		this.lessontype = lessontype;
	}
}
